<div class="style-list clearfix" id="editor-style-{{$item['id']}}"><!-- start style-list -->
		<div class="content" >
						<div class="pr">
							{{$this->Html->image($item['coverimg'],array('title'=>$item['name'],'class'=>'template-cover','data-id'=>$item['id'],'style'=>'max-width:100%;min-height:200px;','data-src'=>$item['coverimg'],))}}
							<div class="tpl-mask" style="display:none;">
								<div style="margin-top:50%;"> 
									<p>
									{{if $item['support_brush']}}
								<i data-id="{{$item['id']}}" class="open-tpl-brush fa fa-magic">秒刷</i>
									{{/if}}
								<i data-id="{{$item['id']}}" class="insert-tpl-content fa fa-file-text-o">插入</i>
									</p>
								{{if $item['creator']==$CurrentUser['id'] && $item['status']!=1}}
								<p style="margin-top:30px;color:red;">
								<i class="fa fa-trash" style="font-size:28px"  title="{{__('Delete This Template')}}" onclick="if(confirm('{{__('Are you sure to delete?')}}')) return ajaxAction('{{$this->Html->url('/editor_styles/delete/'.$item['id'])}}',null,null,function(request){$('#editor-style-'+request.id).remove()});" data-id="{{$item['id']}}"></i>
								</p>
								{{/if}}
								</div>
							</div>
						</div>
						<div class="editor-style-content hidden" {{if !$unuse_data_id}}data-id="{{$item['id']}}"{{/if}}  data-name="{{htmlspecialchars($item['name'])}}" id="template-{{$item['id']}}">
					<?php
						$item['content'] = str_replace('fieldset','section',$item['content']);
						echo $item['content'];
					?>

						</div>				
		</div><!-- end content -->
		<?php  
	$tooltip = __('EditorStyle Template Favorite Tips');

 ?>
			<div class="tools clearfix">
				<div class="title">
					<span><a href="{{$this->Html->url('/editor_styles/'.date('Ymd',strtotime($item['created'])).'/'.$item['id'].'.html')}}" target="_blank">{{$item['name']}}</a></span>
					<!--<span><span class="ui-stats-num" id="Stats-EditorStyle-{{$item['id']}}-view_nums">{{$item['view_nums']}}</span></span>-->
					{{if $fovarited_list && $favor_id = array_search($item['id'],$fovarited_list)}}
						<a href="javascript:void(0)"  data-toggle="tooltip" data-container="body" data-placement="top"  class="btn-favorite pull-right" data-url="{{$this->Html->url('/favorites/cancel/'.$favor_id)}}" data-id="{{$item['id']}}" title="{{__('Favorited Tips')}}" onclick="unfavorite(this);"><i class="fa fa-heart"></i>  <span style="font-size:13px;line-height:24px;">{{__('Favorited')}}(<span class="ui-stats-num" id="Stats-EditorStyle-{{$item['id']}}-favor_nums">{{$item['favor_nums']}}</span>)</span></a>
					{{else}}
						<a href="javascript:void(0)"  data-toggle="tooltip" data-container="body" data-placement="top"  class="btn-favorite pull-right" data-model="EditorStyle" data-id="{{$item['id']}}" title="{{$tooltip}}" onclick="addtofavor('EditorStyle',{{$item['id']}},this);"><i class="fa fa-heart-o"></i> <span style="font-size:13px;line-height:24px;">{{__('Favorite')}}(<span class="ui-stats-num" id="Stats-EditorStyle-{{$item['id']}}-favor_nums">{{$item['favor_nums']}}</span>)</span></a>
					{{/if}}
					{{if $item['score']}}
						<span class="pull-right"  data-toggle="tooltip" data-container="body" data-placement="top" style="color:red;margin:0 5px" title="收藏所需积分"><i class="fa fa-leaf"></i>{{$item['score']}}</span>
					{{/if}}
				</div>
				<!-- {{if 0 && $data_tags[$item['id']]}}
					<p style="margin: 5px 0 0;">
					{{loop $data_tags[$item['id']] $tid}}
						<a class="label label-info" href="/tags/lists/EditorStyle/{{$tid}}?EditorStyle.cate_id={{$item['cate_id']}}" target="_blank">{{$all_tags[$tid]}}</a> &nbsp;
					{{/loop}}
					</p>
				{{/if}} -->
				
				{{if !empty($_SESSION['Auth']['Staff']) }}
					<div>
			    		<a class="btn btn-primary btn-xs" href="{{Router::url('/admin/'.$category_control_name.'/edit/'.$item['id'])}}" target="_blank"><i class="fa fa-edit"></i>{{lang('edit')}}</a>
			    	</div>
			    {{/if}}   
			</div><!-- end tools -->
</div><!-- end style-list -->
